pygrub: Add password support
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 20 Aug 2009 15:17:16 +0000 (16:17 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 20 Aug 2009 15:17:16 +0000 (16:17 +0100)
commitfee98528eaa50c2e554916b9b70795e06b18fbe4
tree999728f7ed5a2114710d41c158f4b68edcaa0efd
parent43639f12e85a20f48b77ffe08f137236e0a20131
pygrub: Add password support

It basically checks for the presence of password line in grub.conf
of the guest image and if this line is present, it supports both clear
text and md5 versions of the password. Editing the grub entries and
command-line are disabled when some password is set in domain's
grub.conf file but the password was not entered yet. Also, new option
to press 'p' in interactive pygrub has been added to allow entering
the grub password. It's been tested on x86_64 with PV guests and was
working fine. Also, the countdown has been stopped after key was
pressed, ie. the user is probably editing the boot configuration.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
tools/pygrub/src/GrubConf.py
tools/pygrub/src/pygrub